package com.sgcc.fj.pmos.e_fj_home.adapter;

import android.content.Context;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.sgcc.pmos.nativesdk.R;
import com.sgcc.fj.pmos.common.utils.DateUtils;
import com.sgcc.fj.pmos.e_fj_home.bean.TradingInstitutionBasicinfoBean;

public class StructuralInformationAdapter extends BaseQuickAdapter<TradingInstitutionBasicinfoBean.DataBean.IpBasicInfomationShareListBean, BaseViewHolder> {

    private Context mContext;

    public StructuralInformationAdapter(Context context) {
        super(R.layout.item_structuralinformation);
        mContext = context;
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, TradingInstitutionBasicinfoBean.DataBean.IpBasicInfomationShareListBean bean) {
        baseViewHolder.setText(R.id.tv_StructuralInformation1, bean.getShareholder());
        baseViewHolder.setText(R.id.tv_StructuralInformation2, bean.getShareholdRatio());
        baseViewHolder.setText(R.id.tv_StructuralInformation3, bean.getContribution());
        baseViewHolder.setText(R.id.tv_StructuralInformation4, DateUtils.getStrng_to_Times_ymdhms(bean.getContributionDate()));
    }
}